package com.cavy.platform.server.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * agent注册命令
 */
@Data
@Accessors(chain = true)
public class AgentRegisterDto {
    @NotNull(message = "主机名称不能为空")
    private String hostname;
    @NotNull(message = "地址不能为空")
    private String address;
    @NotNull(message = "系统名称不能为空")
    private String systemName;
    @NotNull(message = "agent版本号不能为空")
    private String agentVersion;
    @NotNull(message = "最大内存不能为空")
    private long maxMemory;
    @NotNull(message = "最大工作数量不能为空")
    private int maxJobCount;

}
